package com.scwatch.core.repository;


import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.Chatroom;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface ChatroomDao extends Repository<Chatroom,Integer> {

    public Page<Chatroom> findAll(Specification<Chatroom> spec, Pageable pageable);

    public List<Chatroom> findAll(Specification<Chatroom> spec, Limitable limitable);

    public Chatroom findOne(Integer id);

    public Chatroom save(Chatroom bean);

    public void delete(Chatroom bean);
}
